From: Jonas Dreßler Date: Wed, 23 Feb 2022 15:23:02 +0000 (+0100) Subject: overview: Don't expect time argument from drag-end signal X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~516^2^2~44 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bb1ec88dfaf96f9eb08f0c787e669216a4aa312c;p=gnome-shell.git overview: Don't expect time argument from drag-end signal We actually don't get a time from the xdndHandler when it emits drag-end, so we fail right now when calling workspaceManager.get_workspace_by_index(time). Fix it by getting the time ourselves instead. Part-of: --- diff --git a/js/ui/overview.js b/js/ui/overview.js index 7fd38848b..73bef0294 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -260,7 +260,7 @@ var Overview = class { this._lastActiveWorkspaceIndex = workspaceManager.get_active_workspace_index(); } - _onDragEnd(time) { + _onDragEnd() { this._inXdndDrag = false; // In case the drag was canceled while in the overview @@ -268,7 +268,8 @@ var Overview = class { // the overview if (this._shown) { let workspaceManager = global.workspace_manager; - workspaceManager.get_workspace_by_index(this._lastActiveWorkspaceIndex).activate(time); + workspaceManager.get_workspace_by_index(this._lastActiveWorkspaceIndex) + .activate(global.get_current_time()); this.hide(); } this._resetWindowSwitchTimeout();